package com.platform.service;

import com.platform.dao.ApiCommentMapper;
import com.platform.dao.ApiLabelMapper;
import com.platform.entity.ApiCommentVo;
import com.platform.entity.ApiLabelVo;
import com.platform.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-15 15:50:14
 */
@Service
public class ApiCommentService {
    @Autowired
    private ApiCommentMapper apiCommentMapper;


    public void save(ApiCommentVo apiCommentVo) {
        apiCommentMapper.save(apiCommentVo);
    }

    public List<ApiCommentVo> selectList(Map<String, Object> params) {
        return apiCommentMapper.queryList(params);
    }

    public int queryTotal(Query query) {
        return apiCommentMapper.queryTotal(query);
    }
}
